package com.adams.dcxt.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.adams.dcxt.bean.Waiter;
import com.adams.dcxt.dao.WaiterDao;

@Service("waiterService")
@Transactional
public class WaiterServiceImpl  implements WaiterService{

	@Autowired 
	private WaiterDao  waiterDao;
	@Override
	public Waiter validationWaiter(Long number, String pwd) {
		String hql = " from Waiter where number = ? and passwd = ? ";
		return waiterDao.findUnique(hql, number,pwd);
	}

}
